package com.click.app.dao.hibernate;

import com.click.app.dao.EntryProductDao;
import com.click.app.model.EntryProduct;
import java.util.Date;
import java.util.List;


/**
 * @author Joel Chuca Condo
 * @date 04/05/2009
 */
public class EntryProductDaoHibernate extends GenericDaoHibernate<EntryProduct, Long> implements EntryProductDao {

    public EntryProductDaoHibernate() {
        super(EntryProduct.class);
    }

    public List<EntryProduct> findEntryProductsUnPaid() {
        List<EntryProduct> entryProducts = getHibernateTemplate().find("Select entryProduct from EntryProduct as entryProduct " +
                "where entryProduct.restPrice<>0");
        return entryProducts;
    }

    // ------------ reports method -------------

    public Object suppliersReport(Date begin, Date end) {
        Object sr = null;
        return sr;
    }

}
